package org.wotou.authority.domain.wtuser;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 功能节点对象
 *
 * @author zhangQ
 * @date 2017/11/22
 */
@Entity
@Table(name = "wt_power_node")
public class powerNodeDO implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    private String id;
    /**
     * 节点名称（英文名，对应应用控制器、应用、方法名）
     */
    private String name;
    /**
     * 节点中文名（方便看懂）
     */
    private String title;
    /**
     * 启用状态
     */
    private String status;
    /**
     * 备注信息
     */
    private String remark;
    /**
     * 排序值（默认值为50）
     */
    private Integer sort;
    /**
     * 父节点ID（如:方法pid对应相应的控制器）
     */
    private String pid;
    /**
     * 节点类型：1:表示应用（模块）；2:表示控制器；3：表示方法
     */
    private String level;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }
}
